package com.erps.CommonUtils;

public class AppConfig {
	// 系统配置
	public static final String ARRAY_LITE = ",";
	public static final String NAME_VALUE = ":";

	public static final String __DBKEYFIELD = "__DBKEYFIELD";

	public static final String SHARED_PREFERENCE_NAME = "client_preferences";
	// 查询分页数
	public static final String MAX_QUERY_ROW = "20";
	public static final String MAX_PUBLISHER = "MAX_PUBLISHER";
	public static final String MAX_ALARM_PAGEID = "MAX_ALARM_PAGEID";
	public static final String SQL_SUBSTR = "SQL_SUBSTR";
	public static final String SQL_SUBSTR_DEF = "SUBSTR({X},{S},{L})";

	// 线程配置
	public static final Integer THREAD_SLEEP = 30;
	public static final Integer SYN_REPLY = THREAD_SLEEP * 10;
	public static final Integer MAX_CONNECT = THREAD_SLEEP * 10 * 20;

	//
	public static final String CRAWLER_TASK_URL = "CRAWLER_TASK_URL";

	// 按钮命令
	public static final int CMD_LOAD = 0;
	public static final int CMD_MODIFY = 1;
	public static final int CMD_DELETE = 4;
	public static final int CMD_SAVE = 9;

	// 向上消息
	public static final int MSG_STATUS = 1; // 向中心报告状态
	public static final int MSG_EVENT = 2; // 向中心报告事件

	// 向下消息
	public static final int MSG_STOP = 11;
	public static final int MSG_RESTART = 13;
	public static final int MSG_START = 12;

	// 登录用户session
	public static final String SESSION_USERID = "SESSION_USERID";
	public static final String SESSION_USERGUID = "SESSION_USERGUID";
	public static final String SESSION_USERNAME = "SESSION_USERNAME";
	public static final String SESSION_ROLEID = "SESSION_ROLEID";
	public static final String SESSION_ALLOW = "SESSION_ALLOW";
	public static final String SESSION_AREAID = "SESSION_AREAID";

	public static final String SESSION_ORGID = "SESSION_ORGID";
	public static final String SESSION_ORGNAME = "SESSION_ORGNAME";
	public static final String SESSION_STYLE = "SESSION_STYLE";
	public static final String SESSION_TITLE = "SESSION_TITLE";
	public static final String SESSION_LOGO = "SESSION_LOGO";
	public static final String SESSION_SUPPORT = "SESSION_SUPPORT";

	public static final String SESSION_DEVICEID = "SESSION_DEVICEID";

	public static final String SESSION_USERINF = "SESSION_USERINF";

	public static final String WRITE_TO_MONGODB = "WRITE_TO_MONGODB";

	public static final int WRITE_TO_MONGODB_DEF = 0;

	public static final String MONGO_HOST = "MONGO_HOST";
	public static final String MONGO_PORT = "MONGO_PORT";
	public static final String MONGO_HOST_DEF = "192.168.1.24";
	public static final int MONGO_PORT_DEF = 27017;

	public static final String WRITE_TO_DISK = "WRITE_TO_DISK";
	public static final int WRITE_TO_DISK_DEF = 0;

	// 系统配置
	public static final String SYSVER = "V201501.13";
	public static final String URLTYPEDB = "URLTYPEDB";
	public static final int THREAD_CLOSE = 0;
	public static final int THREAD_ACTIVE = 1;
	public static final int THREAD_RESTART = 2;
	public static final int CHECK_MODE = 0;

	// 独立数据库
	public static final String SEARCHDB = "SEARCHDB";
	public static final String WEIBODB = "WEIBODB";
	public static final String HOTDB = "HOTDB";
	public static final String URLDB = "URLDB";

	// 云服务器地址
	public static final String CLOUD_HOST = "CLOUD_HOST";
	public static final String CLOUD_PORT = "CLOUD_PORT";

	// 缓存服务器
	public static final String CACHE_HOST = "CACHE_HOST";
	public static final String CACHE_PORT = "CACHE_PORT";

	// 缓存键值
	public static final String CACHE_MAX_DAY = "CACHE_MAX_DAY";
	public static final String CACHE_IP = "CACHE_IP";
	public static final String CACHE_URL = "CACHE_URL";
	public static final String CACHE_ICP = "CACHE_ICP";
	public static final String CACHE_WEB = "CACHE_WEB";
	public static final String CACHE_DB = "CACHE_DB";
	public static final String CACHE_ORG_NODE = "CACHE_ORG_NODE";
	public static final String CACHE_DOMAIN = "DOMAIN_INFO";
	public static final String CACHE_ORG_RULE = "CACHE_ORG_RULE";
	public static final String CACHE_URLNAME = "URLNAME_INFO";
	public static final String CACHE_USERNAME = "CACHE_USERNAME";
	public static final String CACHE_SHAREID = "CACHE_SHAREID";
	public static final String CACHE_KEYWORD = "CACHE_KEYWORD";
	public static final String CACHE_OWNERURL = "CACHE_OWNERURL";
	public static final String CACHE_RULENAME = "CACHE_RULENAME";
	public static final String CACHE_WEBSITEURL = "CACHE_WEBSITEURL";
	public static final String CACHE_URLTYPENAME = "CACHE_URLTYPENAME";
	public static final String CACHE_WEBSITENAME = "CACHE_WEBSITENAME";

	// 短信配置
	public static final String SMS_USERNAME = "SMS_USERNAME";
	public static final String SMS_KEYWORD = "SMS_KEYWORD";
	public static final String SMS_ADDR = "SMS_ADDR";
	public static final String SMS_SIGN = "SMS_SIGN";

	// 跟踪配置
	public static final String TRACK_DAY = "TRACK_DAY";
	public static final int TRACK_DAY_DEF = 30;

	public static final String ASSIGN_DAY = "ASSIGN_DAY";
	public static final int ASSIGN_DAY_DEF = 14;

	public static final String DISPLAY_SUMMARY = "DISPLAY_SUMMARY";
	public static final int DISPLAY_SUMMARY_DEF = 1;

	public static final String MD5_KEY = "1234567890";

	// 电子邮件配置
	public static final String SMTP_PASS = "SMTP_PASS";
	public static final String SMTP_PORT = "SMTP_PORT";
	public static final String SMTP_USER = "SMTP_USER";
	public static final String SMTP_HOST = "SMTP_HOST";
}
